import Vue from "vue";
import { decorator, axios, local, utils, bns, validator, wakeup } from "@aife/aife-base";
import api from "../../model/api";

let eventHub = new Vue();
const model = {
  ...decorator(api)
};
const core = {
  $model: model,
  $axios: axios,
  $wakeup: wakeup,
  $baseLocal: local,
  $baseBns: bns,
  $baseValidator: validator,
  $baseUtils: utils,
  $eventHub: eventHub
};
export default core;
export { axios, eventHub };
